package com.plz.afmt.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.plz.web.base.vo.PagerResult;
import java.util.List;

import com.plz.afmt.dto.QuestionAnswerDto;
import com.plz.afmt.dto.QuestionAnswerQueryDto;
import com.plz.afmt.entity.QuestionAnswerEntity;
import com.plz.afmt.vo.QuestionAnswerVo;

/**
* 问答记录表
*
* @author jzc
*/
public interface QuestionAnswerService extends IService<QuestionAnswerEntity> {

    PagerResult<QuestionAnswerVo> pageQuery(QuestionAnswerQueryDto dto);

    QuestionAnswerEntity addOrUpdate(QuestionAnswerDto dto);

    List<QuestionAnswerEntity> addOrUpdateList(List<QuestionAnswerDto> dto);

    List<QuestionAnswerVo> listFor(QuestionAnswerQueryDto dto);

    QuestionAnswerVo detail(Long id);

    Boolean add(Long userId,String question,String answer);

}